package com.ibeeking.found.content.b.rest.service;

import com.ibeeking.found.content.service.common.param.BroadcastParam;
import com.ibeeking.found.content.service.common.query.BroadcastPageQuery;
import com.ibeeking.found.content.service.common.query.BroadcastQuery;
import com.ibeeking.found.content.service.common.query.BroadcastRoomIdPageQuery;
import com.ibeeking.found.content.service.common.vo.BroadcastCouponVO;
import com.ibeeking.found.content.service.common.vo.BroadcastGoodsVO;
import com.ibeeking.found.content.service.common.vo.BroadcastVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;
import java.util.Map;

/**
 * 直播间服务接口
 *
 * @Author ibeeking
 */
public interface IBroadcastRoomService {

    /**
     * 列表查询
     *
     * @param broadcastQuery
     * @return
     */
    List<BroadcastVO> list(BroadcastQuery broadcastQuery);

    /**
     * 分页查询直播间列表
     *
     * @param broadcastPageQuery
     * @return
     */
    Page<BroadcastVO> pageList(BroadcastPageQuery broadcastPageQuery);

    /**
     * 直播源查询
     *
     * @param broadcastQuery
     * @return
     */
    Map<String, List<BroadcastVO>> source(BroadcastQuery broadcastQuery);

    /**
     * 直播间的商品列表分页查询
     *
     * @param pageQuery
     * @return
     */
    Page<BroadcastGoodsVO> getGoodsPageList(BroadcastRoomIdPageQuery pageQuery);

    /**
     * 直播间的优惠券列表分页查询
     *
     * @param pageQuery
     * @return
     */
    Page<BroadcastCouponVO> getCouponPageList(BroadcastRoomIdPageQuery pageQuery);

    /**
     * 新增
     *
     * @param broadcastParam
     * @return
     */
    Boolean add(BroadcastParam broadcastParam);

    /**
     * 修改
     *
     * @param broadcastParam
     * @return
     */
    Boolean modify(BroadcastParam broadcastParam);

    /**
     * 主键Id查询
     *
     * @param id
     * @return
     */
    BroadcastVO view(Long id);

    /**
     * 修改发布状态 上线/下架
     *
     * @param id
     * @param status
     * @return
     */
    Integer changePublishStatus(Long id, Integer status);

    /**
     * 主键删除
     *
     * @param id
     * @return
     */
    Boolean del(Long id);
}
